package com.ship.dispatch.service.fob;

import com.ship.common.business.service.BaseService;
import com.ship.dispatch.bean.fob.SpFobFileRecord;

import java.util.List;

/**
 *@title SpFobFileRecordService
 *@description 文件记录
 *@author yl
 *@create 2023/12/15 0015
 */

public interface SpFobFileRecordService extends BaseService<SpFobFileRecord> {
    /**
     * 处理业务记录外多余文件记录
     * @param id
     * @param fiels
     */
    void deleteOtherFileRecor(Long id, List<String> fiels);

    /**
     *
     * @param serviceId
     * @param templateId
     * @return
     */
    SpFobFileRecord selectByServiceAndTemplate(Long serviceId,String templateId);

    List<SpFobFileRecord> queryShipConsumptionList(Long id);

    boolean deleteShipConsumptionById(Long id);

    SpFobFileRecord queryRecordById(String fileId);
}
